package com.llh.uua.validation.annotation

import com.llh.uua.validation.PasswordConstraintValidator
import javax.validation.Constraint
import javax.validation.Payload
import kotlin.annotation.AnnotationTarget.*
import kotlin.reflect.KClass


/**
 *
 *
 * Created At 2021/3/14 15:29
 * @author llh
 */
@MustBeDocumented
@Constraint(validatedBy = [PasswordConstraintValidator::class])
@Target(TYPE, FIELD, ANNOTATION_CLASS)
@Retention(AnnotationRetention.RUNTIME)
annotation class ValidPassword(
    val message: String = "Invalid Password",

    val groups: Array<KClass<*>> = [],

    val payload: Array<KClass<out Payload>> = []
)